Optimal. Leaf size=56 \[ a \cosh (c) \text{Chi}(d x)+a \sinh (c) \text{Shi}(d x)+\frac{2 b \sinh (c+d x)}{d^3}-\frac{2 b x \cosh (c+d x)}{d^2}+\frac{b x^2 \sinh (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.128231, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.353, Rules used = {5287, 3303, 3298, 3301, 3296, 2637} \[ a \cosh (c) \text{Chi}(d x)+a \sinh (c) \text{Shi}(d x)+\frac{2 b \sinh (c+d x)}{d^3}-\frac{2 b x \cosh (c+d x)}{d^2}+\frac{b x^2 \sinh (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5287
Rule 3303
Rule 3298
Rule 3301
Rule 3296
Rule 2637
Rubi steps
\begin{align*} \int \frac{\left (a+b x^3\right ) \cosh (c+d x)}{x} \, dx &=\int \left (\frac{a \cosh (c+d x)}{x}+b x^2 \cosh (c+d x)\right ) \, dx\\ &=a \int \frac{\cosh (c+d x)}{x} \, dx+b \int x^2 \cosh (c+d x) \, dx\\ &=\frac{b x^2 \sinh (c+d x)}{d}-\frac{(2 b) \int x \sinh (c+d x) \, dx}{d}+(a \cosh (c)) \int \frac{\cosh (d x)}{x} \, dx+(a \sinh (c)) \int \frac{\sinh (d x)}{x} \, dx\\ &=-\frac{2 b x \cosh (c+d x)}{d^2}+a \cosh (c) \text{Chi}(d x)+\frac{b x^2 \sinh (c+d x)}{d}+a \sinh (c) \text{Shi}(d x)+\frac{(2 b) \int \cosh (c+d x) \, dx}{d^2}\\ &=-\frac{2 b x \cosh (c+d x)}{d^2}+a \cosh (c) \text{Chi}(d x)+\frac{2 b \sinh (c+d x)}{d^3}+\frac{b x^2 \sinh (c+d x)}{d}+a \sinh (c) \text{Shi}(d x)\\ \end{align*}
Mathematica [A] time = 0.164428, size = 49, normalized size = 0.88 \[ a \cosh (c) \text{Chi}(d x)+a \sinh (c) \text{Shi}(d x)+\frac{b \left (\left (d^2 x^2+2\right ) \sinh (c+d x)-2 d x \cosh (c+d x)\right )}{d^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.032, size = 113, normalized size = 2. \begin{align*}{\frac{b{{\rm e}^{dx+c}}{x}^{2}}{2\,d}}-{\frac{b{{\rm e}^{dx+c}}x}{{d}^{2}}}-{\frac{b{{\rm e}^{-dx-c}}{x}^{2}}{2\,d}}-{\frac{b{{\rm e}^{-dx-c}}x}{{d}^{2}}}-{\frac{a{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{2}}-{\frac{a{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{2}}+{\frac{b{{\rm e}^{dx+c}}}{{d}^{3}}}-{\frac{b{{\rm e}^{-dx-c}}}{{d}^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.23097, size = 189, normalized size = 3.38 \begin{align*} -\frac{1}{6} \,{\left (b{\left (\frac{{\left (d^{3} x^{3} e^{c} - 3 \, d^{2} x^{2} e^{c} + 6 \, d x e^{c} - 6 \, e^{c}\right )} e^{\left (d x\right )}}{d^{4}} + \frac{{\left (d^{3} x^{3} + 3 \, d^{2} x^{2} + 6 \, d x + 6\right )} e^{\left (-d x - c\right )}}{d^{4}}\right )} + \frac{2 \, a \cosh \left (d x + c\right ) \log \left (x^{3}\right )}{d} - \frac{3 \,{\left ({\rm Ei}\left (-d x\right ) e^{\left (-c\right )} +{\rm Ei}\left (d x\right ) e^{c}\right )} a}{d}\right )} d + \frac{1}{3} \,{\left (b x^{3} + a \log \left (x^{3}\right )\right )} \cosh \left (d x + c\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.69971, size = 211, normalized size = 3.77 \begin{align*} -\frac{4 \, b d x \cosh \left (d x + c\right ) -{\left (a d^{3}{\rm Ei}\left (d x\right ) + a d^{3}{\rm Ei}\left (-d x\right )\right )} \cosh \left (c\right ) - 2 \,{\left (b d^{2} x^{2} + 2 \, b\right )} \sinh \left (d x + c\right ) -{\left (a d^{3}{\rm Ei}\left (d x\right ) - a d^{3}{\rm Ei}\left (-d x\right )\right )} \sinh \left (c\right )}{2 \, d^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.8626, size = 66, normalized size = 1.18 \begin{align*} a \sinh{\left (c \right )} \operatorname{Shi}{\left (d x \right )} + a \cosh{\left (c \right )} \operatorname{Chi}\left (d x\right ) + b \left (\begin{cases} \frac{x^{2} \sinh{\left (c + d x \right )}}{d} - \frac{2 x \cosh{\left (c + d x \right )}}{d^{2}} + \frac{2 \sinh{\left (c + d x \right )}}{d^{3}} & \text{for}\: d \neq 0 \\\frac{x^{3} \cosh{\left (c \right )}}{3} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27269, size = 147, normalized size = 2.62 \begin{align*} \frac{b d^{2} x^{2} e^{\left (d x + c\right )} - b d^{2} x^{2} e^{\left (-d x - c\right )} + a d^{3}{\rm Ei}\left (-d x\right ) e^{\left (-c\right )} + a d^{3}{\rm Ei}\left (d x\right ) e^{c} - 2 \, b d x e^{\left (d x + c\right )} - 2 \, b d x e^{\left (-d x - c\right )} + 2 \, b e^{\left (d x + c\right )} - 2 \, b e^{\left (-d x - c\right )}}{2 \, d^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]